package 一维数组;
import  java.util.Scanner;
public class yesno {
    public static void main(String[] args) {
        String word[] = {"Apple","Banana","Orange","Watermelon","Lemon"};
        Scanner input = new Scanner(System.in);
        System.out.print("请输入一个单词：");
        String word_1=input.next();
        for (int i=1;i<word.length;i++){
            if (word_1!=word[i]){
                System.out.print("yas");
                break;
            }else {
                System.out.println("no");
                break;
            }
        }
    }
}
